home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Roaster-Java-WA-HTTP-CGI hack / Protect WA plugin / Interfaces / PluginLibrary.h < prev   
Encoding:
C/C++ Source or Header  |  1996-06-22  |  540 b   |  33 lines  |  [TEXT/MPS ]

  1. #ifndef PLUGINLIBRARY_H
  2. #define PLUGINLIBRARY_H
  3.  
  4. #ifndef MODULE_H
  5. #include "Module.h"
  6. #endif
  7.  
  8.  
  9. /* This file contains some utility functions which can be linked into a
  10.  * plugin module.
  11.  */
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17.  
  18. extern void DebugMsg(const char* msg);
  19.  
  20.  
  21. #ifdef __cplusplus
  22. }
  23.  
  24. /* Special versions of operator-new and operator-delete which allow us to
  25.  * bypass malloc and free.
  26.  */
  27. extern void* operator new(size_t n, void *p);
  28. extern void operator delete(void* p);
  29. #endif // __cplusplus
  30.  
  31.  
  32. #endif // ifndef PLUGINLIBRARY_H
  33.